using ZR.Model.BaseFrame.Dto;
using ZR.Model.BaseFrame.Entity;
using ZR.Model.BaseFrame;

namespace ZR.Service.BaseFrame.IService
{
    /// <summary>
    /// 角色服务接口
    /// </summary>
    public interface IRoleServiceBase : IBaseService<RoleEntity>
    {

            /// <summary>
            /// 添加角色
            /// </summary>
            /// <param name="model"></param>
            /// <returns></returns>
            Task<bool> AddRole(RoleEntity model);

            /// <summary>
            /// 删除角色
            /// </summary>
            /// <param name="ids"></param>
            /// <param name="isRealDel"></param>
            /// <returns></returns>
            Task<bool> DeleteRole(long[] ids, bool isRealDel = true);

            /// <summary>
            /// 修改角色
            /// </summary>
            /// <param name="model"></param>
            /// <returns></returns>
            Task<bool> ModifyRole(RoleEntity model);

            /// <summary>
            /// 变更角色状态
            /// </summary>
            /// <param name="req"></param>
            /// <returns></returns>
            Task<bool> ChangeRoleState(ChangeRoleStateReq req);



            /// <summary>
            /// 获取角色分页列表
            /// </summary>
            /// <param name="req"></param>
            /// <returns></returns>
            Task<PagedInfo<RoleListItemDto>> GetRolePageList(GetRolePageListReq req);

        

            /// <summary>
            /// 获取角色详情
            /// </summary>
            /// <param name="id"></param>
            /// <returns></returns>
            Task<RoleDetailDto> GetRoleDetail(long id);

    

    }
}
